<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Class template insert_iterator&lt;boost::container::slist&lt; T, ValueAllocator &gt;&gt;</title>
<link rel="stylesheet" href="../../../../doc/src/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
<link rel="home" href="../../index.html" title="The Boost C++ Libraries BoostBook Documentation Subset">
<link rel="up" href="../../boost_container_header_reference.html#doxygen.boost_container_header_reference.slist_8hpp" title="Header &lt;boost/container/slist.hpp&gt;">
<link rel="prev" href="classboost_1_1container_1_1slist.html" title="Class template slist">
<link rel="next" href="structboost_1_1container_1_1pmr_1_1small__vector__of.html" title="Struct template small_vector_of">
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr>
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../boost.png"></td>
<td align="center"><a href="../../../../index.html">Home</a></td>
<td align="center"><a href="../../../../libs/libraries.htm">Libraries</a></td>
<td align="center"><a href="http://www.boost.org/users/people.html">People</a></td>
<td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td>
<td align="center"><a href="../../../../more/index.htm">More</a></td>
</tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="classboost_1_1container_1_1slist.html"><img src="../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../boost_container_header_reference.html#doxygen.boost_container_header_reference.slist_8hpp"><img src="../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="structboost_1_1container_1_1pmr_1_1small__vector__of.html"><img src="../../../../doc/src/images/next.png" alt="Next"></a>
</div>
<div class="refentry">
<a name="doxygen.boost_container_header_reference.classstd_1_1insert__iterator_3_01boost_1_1container_1_1slist_3_01T_00_01ValueAllocator_01_4_01_4"></a><div class="titlepage"></div>
<div class="refnamediv">
<h2><span class="refentrytitle">Class template insert_iterator&lt;boost::container::slist&lt; T, ValueAllocator &gt;&gt;</span></h2>
<p>std::insert_iterator&lt;boost::container::slist&lt; T, ValueAllocator &gt;&gt;</p>
</div>
<h2 class="refsynopsisdiv-title">Synopsis</h2>
<div class="refsynopsisdiv"><pre class="synopsis"><span class="comment">// In header: &lt;<a class="link" href="../../boost_container_header_reference.html#doxygen.boost_container_header_reference.slist_8hpp" title="Header &lt;boost/container/slist.hpp&gt;">boost/container/slist.hpp</a>&gt;

</span><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> T<span class="special">,</span> <span class="keyword">typename</span> ValueAllocator<span class="special">&gt;</span> 
<span class="keyword">class</span> <a class="link" href="classstd_1_1insert__iterator_3_01boost_1_1container_1_1slist_3_01T_00_01ValueAllocator_01_4_01_4.html" title="Class template insert_iterator&lt;boost::container::slist&lt; T, ValueAllocator &gt;&gt;">insert_iterator</a><span class="special">&lt;</span><span class="identifier">boost</span><span class="special">::</span><span class="identifier">container</span><span class="special">::</span><span class="identifier">slist</span><span class="special">&lt;</span> <span class="identifier">T</span><span class="special">,</span> <span class="identifier">ValueAllocator</span> <span class="special">&gt;</span><span class="special">&gt;</span> <span class="special">{</span>
<span class="keyword">public</span><span class="special">:</span>
  <span class="comment">// types</span>
  <span class="keyword">typedef</span> Container           <a name="doxygen.boost_container_header_reference.classstd_1_1insert__iterator_3_01boost_1_1container_1_1slist_3_01T_00_01ValueAllocator_01_4_01_4_1ad5ae419b409cb0c39229806594353f5b"></a><span class="identifier">container_type</span><span class="special">;</span>   
  <span class="keyword">typedef</span> <span class="identifier">output_iterator_tag</span> <a name="doxygen.boost_container_header_reference.classstd_1_1insert__iterator_3_01boost_1_1container_1_1slist_3_01T_00_01ValueAllocator_01_4_01_4_1a09e253658005b27b2aca81843449d062"></a><span class="identifier">iterator_category</span><span class="special">;</span>
  <span class="keyword">typedef</span> <span class="keyword">void</span>                <a name="doxygen.boost_container_header_reference.classstd_1_1insert__iterator_3_01boost_1_1container_1_1slist_3_01T_00_01ValueAllocator_01_4_01_4_1a9ea5404ad8d5a727b2fa6e4329eda1cd"></a><span class="identifier">value_type</span><span class="special">;</span>       
  <span class="keyword">typedef</span> <span class="keyword">void</span>                <a name="doxygen.boost_container_header_reference.classstd_1_1insert__iterator_3_01boost_1_1container_1_1slist_3_01T_00_01ValueAllocator_01_4_01_4_1aa157955fabd57abe56c4b738aa34b249"></a><span class="identifier">difference_type</span><span class="special">;</span>  
  <span class="keyword">typedef</span> <span class="keyword">void</span>                <a name="doxygen.boost_container_header_reference.classstd_1_1insert__iterator_3_01boost_1_1container_1_1slist_3_01T_00_01ValueAllocator_01_4_01_4_1a214a08ecb6d1ce7a2b5994b25fb79837"></a><span class="identifier">pointer</span><span class="special">;</span>          
  <span class="keyword">typedef</span> <span class="keyword">void</span>                <a name="doxygen.boost_container_header_reference.classstd_1_1insert__iterator_3_01boost_1_1container_1_1slist_3_01T_00_01ValueAllocator_01_4_01_4_1a303af92d05e1bc8f894ae8153486bf64"></a><span class="identifier">reference</span><span class="special">;</span>        

  <span class="comment">// <a class="link" href="classstd_1_1insert__iterator_3_01boost_1_1container_1_1slist_3_01T_00_01ValueAllocator_01_4_01_4.html#id111-bb">public member functions</a></span>
  <a class="link" href="classstd_1_1insert__iterator_3_01boost_1_1container_1_1slist_3_01T_00_01ValueAllocator_01_4_01_4.html#doxygen.boost_container_header_reference.classstd_1_1insert__iterator_3_01boost_1_1container_1_1slist_3_01T_00_01ValueAllocator_01_4_01_4_1ae43cde899cf6eec2f7d40bebd582f013"><span class="identifier">insert_iterator</span></a><span class="special">(</span>Container <span class="special">&amp;</span><span class="special">,</span> <span class="keyword">typename</span> <span class="identifier">Container</span><span class="special">::</span><span class="identifier">iterator</span><span class="special">,</span> <span class="keyword">bool</span> <span class="special">=</span> <span class="keyword">false</span><span class="special">)</span><span class="special">;</span>
  <span class="identifier">insert_iterator</span><span class="special">&lt;</span> Container <span class="special">&gt;</span> <span class="special">&amp;</span> 
  <a class="link" href="classstd_1_1insert__iterator_3_01boost_1_1container_1_1slist_3_01T_00_01ValueAllocator_01_4_01_4.html#doxygen.boost_container_header_reference.classstd_1_1insert__iterator_3_01boost_1_1container_1_1slist_3_01T_00_01ValueAllocator_01_4_01_4_1a4120acdb8765820eaef06def6a3134cf"><span class="keyword">operator</span><span class="special">=</span></a><span class="special">(</span><span class="keyword">const</span> <span class="keyword">typename</span> <span class="identifier">Container</span><span class="special">::</span><span class="identifier">value_type</span> <span class="special">&amp;</span><span class="special">)</span><span class="special">;</span>
  <span class="identifier">insert_iterator</span><span class="special">&lt;</span> Container <span class="special">&gt;</span> <span class="special">&amp;</span> <a class="link" href="classstd_1_1insert__iterator_3_01boost_1_1container_1_1slist_3_01T_00_01ValueAllocator_01_4_01_4.html#doxygen.boost_container_header_reference.classstd_1_1insert__iterator_3_01boost_1_1container_1_1slist_3_01T_00_01ValueAllocator_01_4_01_4_1a6dc8ddefae67bb8f9b175239a2681118"><span class="keyword">operator</span><span class="special">*</span></a><span class="special">(</span><span class="special">)</span><span class="special">;</span>
  <span class="identifier">insert_iterator</span><span class="special">&lt;</span> Container <span class="special">&gt;</span> <span class="special">&amp;</span> <a class="link" href="classstd_1_1insert__iterator_3_01boost_1_1container_1_1slist_3_01T_00_01ValueAllocator_01_4_01_4.html#doxygen.boost_container_header_reference.classstd_1_1insert__iterator_3_01boost_1_1container_1_1slist_3_01T_00_01ValueAllocator_01_4_01_4_1a5b62a43b0f143da31f459f5a5d945417"><span class="keyword">operator</span><span class="special">++</span></a><span class="special">(</span><span class="special">)</span><span class="special">;</span>
  <span class="identifier">insert_iterator</span><span class="special">&lt;</span> Container <span class="special">&gt;</span> <span class="special">&amp;</span> <a class="link" href="classstd_1_1insert__iterator_3_01boost_1_1container_1_1slist_3_01T_00_01ValueAllocator_01_4_01_4.html#doxygen.boost_container_header_reference.classstd_1_1insert__iterator_3_01boost_1_1container_1_1slist_3_01T_00_01ValueAllocator_01_4_01_4_1a1ae690be8bdc724fdda49d4b84883b80"><span class="keyword">operator</span><span class="special">++</span></a><span class="special">(</span><span class="keyword">int</span><span class="special">)</span><span class="special">;</span>
<span class="special">}</span><span class="special">;</span></pre></div>
<div class="refsect1">
<a name="id-1.3.9.14.35.4.4"></a><h2>Description</h2>
<p>A specialization of insert_iterator that works with slist </p>
<div class="refsect2">
<a name="id-1.3.9.14.35.4.4.3"></a><h3>
<a name="id111-bb"></a><code class="computeroutput">insert_iterator</code> public member functions</h3>
<div class="orderedlist"><ol class="orderedlist" type="1">
<li class="listitem"><pre class="literallayout"><a name="doxygen.boost_container_header_reference.classstd_1_1insert__iterator_3_01boost_1_1container_1_1slist_3_01T_00_01ValueAllocator_01_4_01_4_1ae43cde899cf6eec2f7d40bebd582f013"></a><span class="identifier">insert_iterator</span><span class="special">(</span>Container <span class="special">&amp;</span> x<span class="special">,</span> <span class="keyword">typename</span> <span class="identifier">Container</span><span class="special">::</span><span class="identifier">iterator</span> i<span class="special">,</span> 
                <span class="keyword">bool</span> is_previous <span class="special">=</span> <span class="keyword">false</span><span class="special">)</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><span class="identifier">insert_iterator</span><span class="special">&lt;</span> Container <span class="special">&gt;</span> <span class="special">&amp;</span> 
<a name="doxygen.boost_container_header_reference.classstd_1_1insert__iterator_3_01boost_1_1container_1_1slist_3_01T_00_01ValueAllocator_01_4_01_4_1a4120acdb8765820eaef06def6a3134cf"></a><span class="keyword">operator</span><span class="special">=</span><span class="special">(</span><span class="keyword">const</span> <span class="keyword">typename</span> <span class="identifier">Container</span><span class="special">::</span><span class="identifier">value_type</span> <span class="special">&amp;</span> value<span class="special">)</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><span class="identifier">insert_iterator</span><span class="special">&lt;</span> Container <span class="special">&gt;</span> <span class="special">&amp;</span> <a name="doxygen.boost_container_header_reference.classstd_1_1insert__iterator_3_01boost_1_1container_1_1slist_3_01T_00_01ValueAllocator_01_4_01_4_1a6dc8ddefae67bb8f9b175239a2681118"></a><span class="keyword">operator</span><span class="special">*</span><span class="special">(</span><span class="special">)</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><span class="identifier">insert_iterator</span><span class="special">&lt;</span> Container <span class="special">&gt;</span> <span class="special">&amp;</span> <a name="doxygen.boost_container_header_reference.classstd_1_1insert__iterator_3_01boost_1_1container_1_1slist_3_01T_00_01ValueAllocator_01_4_01_4_1a5b62a43b0f143da31f459f5a5d945417"></a><span class="keyword">operator</span><span class="special">++</span><span class="special">(</span><span class="special">)</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><span class="identifier">insert_iterator</span><span class="special">&lt;</span> Container <span class="special">&gt;</span> <span class="special">&amp;</span> <a name="doxygen.boost_container_header_reference.classstd_1_1insert__iterator_3_01boost_1_1container_1_1slist_3_01T_00_01ValueAllocator_01_4_01_4_1a1ae690be8bdc724fdda49d4b84883b80"></a><span class="keyword">operator</span><span class="special">++</span><span class="special">(</span><span class="keyword">int</span><span class="special">)</span><span class="special">;</span></pre></li>
</ol></div>
</div>
</div>
</div>
<div class="copyright-footer">Copyright © 2009-2018 Ion Gaztanaga<p>
        Distributed under the Boost Software License, Version 1.0. (See accompanying
        file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
      </p>
</div>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="classboost_1_1container_1_1slist.html"><img src="../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../boost_container_header_reference.html#doxygen.boost_container_header_reference.slist_8hpp"><img src="../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="structboost_1_1container_1_1pmr_1_1small__vector__of.html"><img src="../../../../doc/src/images/next.png" alt="Next"></a>
</div>
</body>
</html>
